package com.example.demo.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

@RestController
public class DevopsController {


    @GetMapping("hello")
    public String hello(){
        String strDateFormat = "yyyy-MM-dd HH:mm:ss.SSS";
        SimpleDateFormat sdf = new SimpleDateFormat(strDateFormat);
        String time = sdf.format(new Date());
        return "hello:" + time;

    }


    @GetMapping("helloDevOps")
    public String helloDevOps(){
        
        return "helloDevOps";

    }

}
